<?php
    header("content-type:text/html;charset=utf8");
    $id = $_GET['id'];
    $con = mysqli_connect("localhost","root","root","user");
    mysqli_query($con,"set names utf8");
    mysqli_query($con,"update goods set readnum=readnum+1 where id=$id");

?>